C = gpuArray(single(C));
Zv = gpuArray(single(Zv));
Zd = gpuArray(single(Zd));
Y = gpuArray(single(Y));
U = gpuArray(single(U));
V = gpuArray(single(V));
Av = gpuArray(single(Av));
Ad = gpuArray(single(Ad));
Iv = gpuArray(single(Iv));
Id = gpuArray(single(Id));
Tv = gpuArray(single(Tv));
Td = gpuArray(single(Td));